﻿#region Copyright information
// 
// Copyright © 2012-2013 Yongkee Cho. All rights reserved.
// 
// This code is a part of the SubnetworkToolkit and governed under the terms of the
// GNU Lesser General  Public License (LGPL) version 2.1 which accompanies this distribution.
// For more information on the LGPL, please visit http://bol.codeplex.com/license.
// 
// - Filename: Options.cs
// - Author: Yongkee Cho
// - Email: yongkeecho@outlook.com
// - Date Created: 2013-01-30 2:55 PM
// - Last Modified: 2013-01-30 3:21 PM
// 
#endregion
using System.Collections.Generic;
using System.Text;
using CommandLine;

namespace SubnetworkToolkit.Export
{
    public class Options
    {
        [Option("n", "name", HelpText = "Specify a name.")]
        public string Name { get; set; }

        [Option("i", "input gmt file", HelpText = "Specify an input gmt file.")]
        public string GmtFile { get; set; }

        [Option("o", "output GraphML file", HelpText = "Specify an output GraphML file.")]
        public string GraphMlFile { get; set; }

        [OptionList("p", "propertyFiles", DefaultValue = new string[0], Separator = ':', HelpText = "Specify property csv files.")]
        public IList<string> PropertyFiles { get; set; }
        
        [OptionList("m", "important", ':', HelpText = "Specify an important gene list.")]
        public IList<string> ImportantGenes { get; set; }

        [HelpOption(HelpText = "Dispaly this help screen.")]
        public string GetUsage()
        {
            var help = new StringBuilder();
            help.AppendLine("Usage : export [OPTION]");
            help.AppendLine("Options:");
            help.AppendLine("    -n           name");
            help.AppendLine("    -i           gmt file");
            help.AppendLine("    -o           output graphml file");
            help.AppendLine("    -p           property files (delimited by ' ')");
            help.AppendLine("    -m           important gene (delimited by ':')");
            return help.ToString();
        }
    }
}
